package com.xgy.backend.service;

import com.xgy.backend.dto.BoardKifuDto;
import com.xgy.backend.dto.ScreeningConditionDto;

import java.util.List;
import java.util.concurrent.CompletableFuture;


public interface AsyncService {

    /**
     * 多线程批次查询并筛选返回对应list
     * @param screeningCondition 筛选条件
     * @param start 批次起始索引
     * @param end   批次结束索引
     * @return
     */
    CompletableFuture<List<BoardKifuDto>> executeBoardAsync(ScreeningConditionDto screeningCondition, int start, int end);
}
